package com.fy.common.exception;

import com.fy.common.vo.ResultVo;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class ExceptionResolver {

    @ExceptionHandler(AccessDeniedException.class)
    public ResultVo responseClient(Exception e){
        return new ResultVo(false, "没有权限访问", "", "403");
    }

}
